package aex.domain;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * Article entity. @author MyEclipse Persistence Tools
 */

public class Article implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer arId;
	private Puser puser;
	private ArticleCategory articleCategory;
	private String arTitle;
	private Timestamp arTime;
	private Integer arType;
	private Integer arViewCount;
	private Integer arComentCount;
	private String arAbstract;
	private String arContent;
	private Integer arLike;
	private String arAuthor;
	private Set commentArticles = new HashSet(0);

	// Constructors
	
	/** default constructor */
	public Article() {
	}

	public String getArContent() {
		return arContent;
	}

	public void setArContent(String arContent) {
		this.arContent = arContent;
	}

	/** minimal constructor */
	public Article(Integer arId) {
		this.arId = arId;
	}

	/** full constructor */
	public Article(Integer arId, Puser puser, ArticleCategory articleCategory,
			String arTitle, Timestamp arTime, Integer arType,
			Integer arViewCount, Integer arComentCount, String arAbstract,
			Integer arLike, String arAuthor, Set commentArticles) {
		this.arId = arId;
		this.puser = puser;
		this.articleCategory = articleCategory;
		this.arTitle = arTitle;
		this.arTime = arTime;
		this.arType = arType;
		this.arViewCount = arViewCount;
		this.arComentCount = arComentCount;
		this.arAbstract = arAbstract;
		this.arLike = arLike;
		this.arAuthor = arAuthor;
		this.commentArticles = commentArticles;
	}

	// Property accessors

	public Integer getArId() {
		return this.arId;
	}

	public void setArId(Integer arId) {
		this.arId = arId;
	}

	public Puser getPuser() {
		return this.puser;
	}

	public void setPuser(Puser puser) {
		this.puser = puser;
	}

	public ArticleCategory getArticleCategory() {
		return this.articleCategory;
	}

	public void setArticleCategory(ArticleCategory articleCategory) {
		this.articleCategory = articleCategory;
	}

	public String getArTitle() {
		return this.arTitle;
	}

	public void setArTitle(String arTitle) {
		this.arTitle = arTitle;
	}

	public Timestamp getArTime() {
		return this.arTime;
	}

	public void setArTime(Timestamp arTime) {
		this.arTime = arTime;
	}

	public Integer getArType() {
		return this.arType;
	}

	public void setArType(Integer arType) {
		this.arType = arType;
	}

	public Integer getArViewCount() {
		return this.arViewCount;
	}

	public void setArViewCount(Integer arViewCount) {
		this.arViewCount = arViewCount;
	}

	public Integer getArComentCount() {
		return this.arComentCount;
	}

	public void setArComentCount(Integer arComentCount) {
		this.arComentCount = arComentCount;
	}

	public String getArAbstract() {
		return this.arAbstract;
	}

	public void setArAbstract(String arAbstract) {
		this.arAbstract = arAbstract;
	}

	public Integer getArLike() {
		return this.arLike;
	}

	public void setArLike(Integer arLike) {
		this.arLike = arLike;
	}

	public String getArAuthor() {
		return this.arAuthor;
	}

	public void setArAuthor(String arAuthor) {
		this.arAuthor = arAuthor;
	}

	public Set getCommentArticles() {
		return this.commentArticles;
	}

	public void setCommentArticles(Set commentArticles) {
		this.commentArticles = commentArticles;
	}

}